% windTester.m
% Tests the wind function

clear all; close all; clc;

wind = struct('direction',1,'speed',3);

numSteps = 10000;

dirPrint = NaN(1,numSteps);
speedPrint = NaN(1,numSteps);

for i=1:1:numSteps
    dirDegs = wind.direction*360/16;
    dirPrint(i) = dirDegs;
    speedPrint(i) = wind.speed;
    % update
    wind = genWind(wind);
end

figure(1)
plot(dirPrint)

figure(2)
plot(speedPrint)

figure(3)
polar(dirPrint*pi/180,speedPrint,'or')